package com.ruoyi.locker.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 寄存柜对象 locker
 *
 * @author ruoyi
 * @date 2024-01-14
 */
@TableName("locker")
public class Locker implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 储物名称 */
    @Excel(name = "储物名称")
    private String name;

    @Excel(name = "图片")
    private String picture;

    @Excel(name = "赛季id")
    private String playSeasonId;

    /** 类型1订单商品2奖励商品 */
    @Excel(name = "类型1订单商品2奖励商品3赛季")
    private Integer type;
    @Excel(name = "数量")
    private Integer count;

    /** 收货人 */
    @Excel(name = "收货人")
    private String collectName;

    /** 收货手机号 */
    @Excel(name = "收货手机号")
    private String collectMobile;

    /** 收货地址 */
    @Excel(name = "收货地址")
    private String collectAddress;

    /** 收货详细信息 */
    @Excel(name = "收货详细信息")
    private String collectDetail;

    /** 用户id */
    @Excel(name = "用户id")
    private String appuserId;

    /** 商品id */
    @Excel(name = "商品id")
    private String productId;

    /** 订单id */
    @Excel(name = "订单id")
    private String cid;

    /** 可用标识1未用2已用默认1 */
    @Excel(name = "可用标识1未用2已用默认1")
    private Integer isUse;

    /** 删除标识0否1是 默认0 */
    @Excel(name = "删除标识0否1是 默认0")
    private Integer isDeleted;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getPlaySeasonId() {
        return playSeasonId;
    }

    public void setPlaySeasonId(String playSeasonId) {
        this.playSeasonId = playSeasonId;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setCollectName(String collectName)
    {
        this.collectName = collectName;
    }

    public String getCollectName()
    {
        return collectName;
    }
    public void setCollectMobile(String collectMobile)
    {
        this.collectMobile = collectMobile;
    }

    public String getCollectMobile()
    {
        return collectMobile;
    }
    public void setCollectAddress(String collectAddress)
    {
        this.collectAddress = collectAddress;
    }

    public String getCollectAddress()
    {
        return collectAddress;
    }
    public void setCollectDetail(String collectDetail)
    {
        this.collectDetail = collectDetail;
    }

    public String getCollectDetail()
    {
        return collectDetail;
    }
    public void setAppuserId(String appuserId)
    {
        this.appuserId = appuserId;
    }

    public String getAppuserId()
    {
        return appuserId;
    }
    public void setProductId(String productId)
    {
        this.productId = productId;
    }

    public String getProductId()
    {
        return productId;
    }
    public void setCid(String cid)
    {
        this.cid = cid;
    }

    public String getCid()
    {
        return cid;
    }
    public void setIsUse(Integer isUse)
    {
        this.isUse = isUse;
    }

    public Integer getIsUse()
    {
        return isUse;
    }
    public void setIsDeleted(Integer isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted()
    {
        return isDeleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("picture", getPicture())
            .append("type", getType())
            .append("collectName", getCollectName())
            .append("collectMobile", getCollectMobile())
            .append("collectAddress", getCollectAddress())
            .append("collectDetail", getCollectDetail())
            .append("appuserId", getAppuserId())
            .append("productId", getProductId())
            .append("cid", getCid())
            .append("isUse", getIsUse())
            .append("isDeleted", getIsDeleted())
            .append("createTime", getCreateTime())
            .toString();
    }
}
